package com.yuch.dao;

import com.yuch.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @projectName: springboot_31_ActiveMQ
 * @author: yuch
 * @description: TODO
 * @date: 2024/8/5 10:06
 */


@Repository
public interface UserDao extends JpaRepository<User, Integer> {

    User findByUserName(String userName);

    User findByUserNameAndPassword(String userName, String password);

    User findByUserNameOrUserType(String userName, String password);
}
